<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>项目执行者管理</title>
    <script>
        function addRefrigeration() {
            location.href = "/xg";
        }

        function addExcutor() {
            location.href = "/excutor/update";
        }
    </script>
</head>
<body>
<div style="width: 100%;margin: auto">
    <button class="btn btn-default" onclick="addRefrigeration()">
        <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>项目管理
    </button>
    <button class="btn btn-default" onclick="addExcutor()">
        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>添加项目人员
    </button>
    <table class="table table-hover">
        <thead>
        <th>项目人员</th>
        <th>操作</th>
        </thead>
        <tbody>
        <c:forEach items="${excutorDTOs}" var="excutorDTO">
            <tr>
                <td>${excutorDTO.name}</td>
                <td>
                    <a href="/excutor/update?id=${excutorDTO.id}&name=${excutorDTO.name}">修改</a>&nbsp;|&nbsp;
                    <a href="/excutor/del/${excutorDTO.id}">删除</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
</body>
</html>
